Skip to content

Conversation

@mbaedke
Copy link
Contributor

@mbaedke mbaedke commented Dec 8, 2025

Replaced the dynamic inline mocking with a static agent dependency.

Replaced the dynamic inline mocking with a static agent dependency.
@mbaedke
Copy link
Contributor Author

mbaedke commented Dec 8, 2025

The surefire und failsafe configs are part of the parent pom so that they are reused in all subproject. I left it that way, which has the slightly ugly side effect that the agent is used even in projects that do not use mockito, which now need a mockito-core dependency. Of course, we can also decide to leave the parent pom unchanged and override the config in the subprojects that actually use mockito. I prefer the parent pom solution, which produces much less boilerplate and automatically makes all subprojects mockito ready.
Or we use mockito-junit-jupiter as rishab mentioned in the Jira. I didn't test that yet.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant